#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "jsonParse/remove_json_comment.h"
#include "drawingBoard/drawing_board.h"

#include <iostream>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_draw_clicked()
{
    ui->label_show_image->initWithImage(":/images/Line_Image1.png");

    std::string fileContent = readContentFromFile("ccd.json");
    std::string jsonstr = removeCommentOfJsonString(fileContent);
    std::cout << jsonstr << std::endl;
}
